<div class="container">
    <legend><h3>管理员信息</h3></legend>
    <a href="add.php" class="btn btn-default" type="button">添加管理员</a>
    <table class="table table-bordered">
        <tr class="th">
            <td>序号</td>
            <td widtd="15%">用户名</td>
            <td widtd="20%">身份</td>
            <td widtd="35%">联系方式</td>
            <td widtd="30%">删除管理员</td>
        </tr>
        <?php
        $manage = new MANAGE();
        $record = $manage->list_manager();
        ?>
        <?php foreach ($record as $key => $value): ?>
            <tr>
                <td><?php echo htmlspecialchars($key + 1); ?></td>
                <td><?php echo htmlspecialchars($value['name']); ?></td>
                <td><?php echo htmlspecialchars($value['duty']); ?></td>
                <td><?php echo htmlspecialchars($value['number']); ?></td>
                <td>
                    <form action='../php/del_manager.php' method='POST'>
                        <input name = 'name' type='hidden' value="<?php echo htmlspecialchars($value['name']); ?>">
                        <button class='btn btn-default' type='submit'>删除</button>
                    </form>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
</div>
